import {Navigate} from 'react-router-dom'
import AddGoods from "../pages/AddGoods"
import CarList from "../pages/CarList"
import GoodsList from "../pages/GoodsList"

const routes = [
    {
        path:'/addGoods',
        element:<AddGoods/>
    },
    {
        path:'/goodsList',
        element:<GoodsList/>
    },
    {
        path:'/carList',
        element:<CarList/>
    },
    {
        index:true,
        element:<Navigate to='/addGoods'/>
    }
]
export default routes